/*
 * Copyright (C) 2010-2011 Comcast Cable.  All Rights Reserved.
 */
package com.hercules.android.receiver.painting.views;

import android.widget.AbsoluteLayout.LayoutParams;

import com.hercules.android.receiver.model.objects.XREView;

/**
 * This is subclass of AbsoluteLayout.LayoutParams that wraps creating this LayoutParams from {@link XREView}. This
 * class is simple wrapper around constructors of base class.
 * <p>
 * AndroidAssembly3 this class was added for Android Assembly 3.
 *
 * @author TCSASSEMBLER
 * @version 1.0
 */
@SuppressWarnings("deprecation")
public class XRELayoutParams extends LayoutParams {
    /**
     * Constructor for class {@link XRELayoutParams} that takes coordinates and dimensions in another order.
     *
     * @param x the x coordinate of the window
     * @param y the y coordinate of the window
     * @param width the width of the window
     * @param height the height of the window
     */
    public XRELayoutParams(int x, int y, int width, int height) {
        super(width, height, x, y);
    }

    /**
     * Constructor for {@link XRELayoutParams} that takes {@link XREView} and creates LayoutParams using its dimensions.
     *
     * @param xreView the {@link XREView} that will provide dimensions
     */
    public XRELayoutParams(XREView xreView) {
        this(0, 0, xreView.getWidth(), xreView.getHeight());
    }
}
